package com.ruoyi.ring.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 版本管理对象 ora_app_version
 * 
 * @author liuwp
 * @date 2024-12-28
 */
public class AppVersion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 平台 */
    @Excel(name = "平台", dictType = "app_release_platform")
    private Integer platform;

    /** 下载地址 */
    @Excel(name = "下载地址")
    private String downUrl;

    /** 描述 */
    @Excel(name = "描述")
    private String describe;

    /** 是否必须更新 */
    @Excel(name = "是否必须更新", dictType = "sys_yes_no")
    private Integer mustRenew;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setPlatform(Integer platform)
    {
        this.platform = platform;
    }

    public Integer getPlatform()
    {
        return platform;
    }
    public void setDownUrl(String downUrl) 
    {
        this.downUrl = downUrl;
    }

    public String getDownUrl() 
    {
        return downUrl;
    }
    public void setDescribe(String describe) 
    {
        this.describe = describe;
    }

    public String getDescribe() 
    {
        return describe;
    }
    public void setMustRenew(Integer mustRenew) 
    {
        this.mustRenew = mustRenew;
    }

    public Integer getMustRenew() 
    {
        return mustRenew;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("version", getVersion())
            .append("platform", getPlatform())
            .append("downUrl", getDownUrl())
            .append("describe", getDescribe())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("mustRenew", getMustRenew())
            .toString();
    }
}
